
<?php
// put your code here
//$this->pageTitle = VentasFactura::label(2);

$form = $this->beginWidget('ext.AweCrud.components.AweActiveForm', array(
    'type' => 'horizontal',
    'id' => 'anexo-transaccional',
    'enableAjaxValidation' => false,
    'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => false,),
    'enableClientValidation' => true,
//    'htmlOptions' => array('class' => 'narrow'),
        ));
?>
<style type="text/css">
    #tablaInfo { 
        color: #222834;

    }
    #tablaInfoB { 
        color: #ffffff;

    }
    #titulosT{
        text-align: center;
    }
    #totalRetencion{
        text-align: left;
    }
    #titulosTotales{
        text-align: right;
        color: #222834;
    }
    #valorIva{
        text-align: center;
    }
    #noRegistrosClientes{
        text-align: center;
    }
    #biTarifa0{
        text-align: center; 
    }
    #biTarifa12{ text-align: center; }

    #biNOIva{text-align: center; }
    #valorIva{
        text-align: center;
    }
    #biTarifa0T{
        text-align: center; 
    }
    #biTarifa12T{ text-align: center; }

    #biNOIvaT{text-align: center; }
    #valorIvaT{
        text-align: center;
    }
    #valorRetIva{ text-align: center;}
    #valorRetRenta{
        text-align: center;
    }
    #totalRetencion{text-align: center;}
</style>

<!-- BEGIN GRID SAMPLE PORTLET-->
<div class="widget blue">
    <div class="widget-title">
        <h4><i class=" icon-exclamation-sign"></i> Anexo Transaccional</h4>
        <span class="tools">
            <a class="icon-chevron-down" href="javascript:;"></a>
        </span>
    </div>
    <div class="widget-body">
        <p class="note">
            <?php echo Yii::t('AweCrud.app', 'Fields with') ?> <span class="required">*</span>
            <?php echo Yii::t('AweCrud.app', 'are required') ?>.    </p>
        <div class="row-fluid controles">
            <div id="controlFecha">
                <?php
                echo $form->datepickerRow($model, 'fechaBusqueda', array(
                    'prepend' => '<i id="iconoC" class="icon-calendar"></i>',
//                    'icon' => ' icon-file-text',
                    'options' => array(
                        'format' => 'dd/mm/yyyy',
                        'startView' => 2,
                        'minViewMode' => 1,
                        'endDate' => 'thisYear',
                        'language' => 'es',
                        'autoclose' => 'true',
                        'keyboardNavigation' => true,
                        'forceParse' => false,
                    ),
                    'class' => 'span10 hasDatepicker',
                    'readOnly' => 'true',
                ));

                $this->widget('bootstrap.widgets.TbButton', array(
                    'id' => 'generarXML',
                    'label' => 'Generar Archivo',
                    'encodeLabel' => false,
                    'icon' => ' icon-file-text',
                    'htmlOptions' => array(
                        'onClick' => 'js:generarXml("#anexo-transaccional")',
//                                    'onClick' => 'js:viewModal("ventas/ventasAnticipo/cliente"',
                        'class' => 'btn btn-info'
                    ),
                ));
                ?>
            </div>
        </div>


    </div>
</div>



<?php $this->endWidget(); ?>
<form  id="form_archivo" class="hidden">
    <input type="text" name="nombreArchivo"  id="na" value="">    

</form>